﻿
using Radius.NET.Application.Const;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Radius.NET.Application.Entity
{
    /// <summary>
    /// 外部接口清单
    /// </summary>
    [SugarTable("sys_api_list", TableDescription = "外部接口清单")]
    [Description("外部接口清单")]
    public class SysApiConfigList : EntityBase
    {
        /// <summary>
        /// 编码标识
        /// </summary>
        [Required, MaxLength(200)]
        [SugarColumn(ColumnDescription = "编码标识")]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required, MaxLength(200)]
        [SugarColumn(ColumnDescription = "名称")]
        public string Name { get; set; }


        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "类型")]
        public WebApiEnum Type { get; set; } = WebApiEnum.KingdeeIcloud;

        /// <summary>
        /// 是否正式账套
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "是否正式账套", IsNullable = true)]
        public string IsMaster { get; set; } = "N";

        /// <summary>
        /// 是否提交
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "是否提交", IsNullable = true)]
        public string IsSubmit { get; set; } = "N";

        /// <summary>
        /// 是否审核
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "是否审核", IsNullable = true)]
        public string IsAudit { get; set; } = "N";

        /// <summary>
        /// 状态（字典 0正常 1停用 2删除）
        /// </summary>
        [SugarColumn(ColumnDescription = "状态")]
        public StatusEnum Status { get; set; } = StatusEnum.Enable;


        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(100)]
        [SugarColumn(ColumnDescription = "备注", IsNullable = true)]
        public string Remark { get; set; }

    }
}
